package com.ybkj.daijia.server.service;

import com.ybkj.daijia.server.model.DriverChoseLevelZhuanxian;
import java.util.List;

/**
 * @author Shine
 */
public interface DriverChoseLevelZhuanxianService {

    /**
     * 保存司机提成信息
     *
     * @return
     */
    public DriverChoseLevelZhuanxian insertRecord(
        DriverChoseLevelZhuanxian driverChoseLevelZhuanxian);


    /**
     * 根据主键查询司机提成信息
     *
     * @return
     */
    public DriverChoseLevelZhuanxian findByDriverAndLevelAndLine(Long driverId, Long driverLevelId,
        Long lineId, Integer lineType);

    public DriverChoseLevelZhuanxian findByDriverAndLine(Long driverId, Long lineId,
        Integer lineType);

    public List<DriverChoseLevelZhuanxian> findByDriver(Long driverId);

    /**
     * 根据主键删除司机提成信息
     */
    public void deleteByDriverAndLine(Long driverId, Integer lineType);


    /**
     * 根据提成级别删除提成详情
     */
    public void deleteByDriver(Long driverId);


}
